package com.best.design.observer.step3.event.listener;

import com.best.design.observer.step3.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 短信监听器
 */
public class MessageEventListener implements EventListener {

	private Logger logger = LoggerFactory.getLogger(MessageEventListener.class);

	@Override
	public void doEvent(LotteryResult result) {
		logger.info("给用户 {} 发送短信通知(短信)：{}", result.getuId(), result.getMsg());
	}

}